home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / Libraries / VideoToolbox 95.04.18 / VideoToolboxSources / mc68881.h < prev    next >
Text File  |  1994-10-17  |  957b  |  36 lines

  1. /*
  2. mc68881.h 
  3. Defines MPW C's mc68881 and mc68020 preprocessor symbols for THINK C and
  4. Metrowerks CodeWarrior C, so that your programs can use them in "if" statements
  5. without worrying about which compiler you're using. The symbols are 1 (i.e.
  6. true) if the compiled code requires the chip (or better) and 0 otherwise.
  7.  
  8. CAUTION: Do not #include this file before FixMath.h
  9.  
  10. HISTORY:
  11. 1992 dgp wrote it
  12. 7/28/94 dgp added support for Metrowerks CodeWarrior C
  13. */
  14. #pragma once
  15.  
  16. #if defined(THINK_C) && THINK_C==1            /* THINK C 4 */
  17.     #define mc68881 _MC68881_
  18.     #define mc68020 _MC68020_
  19. #endif
  20. #if (defined(THINK_C) && THINK_C>1) || defined(THINK_CPLUS)            /* THINK C 5,6,7, C++ */
  21.     #if __option(mc68881)
  22.         #define mc68881 1
  23.     #else
  24.         #define mc68881 0
  25.     #endif
  26.     #if __option(mc68020)
  27.         #define mc68020 1
  28.     #else
  29.         #define mc68020 0
  30.     #endif
  31. #endif
  32. #if defined(__MWERKS__)                /* Metrowerks CodeWarrior C */
  33.     #define mc68881 __MC68881__
  34.     #define mc68020 __MC68020__
  35. #endif
  36.